import { Component, Input } from '@angular/core';
import { SrmOrientation } from 'src/components/scenarios/enums';
import { FieldMapConfig, LaneConfig } from 'src/components/scenarios/models';

@Component({
  selector: 'app-lane-info',
  templateUrl: './lane-info.component.html',
  styleUrl: './lane-info.component.scss'
})
export class LaneInfoComponent {
  orientations: SrmOrientation[] = Object.values(SrmOrientation);

  private _lane: LaneConfig = {
    Orientation: SrmOrientation.L2R,
    MinColumn: 1,
    MaxColumn: 1,
    IsVisible: true,
    DoubleLine: false
  };
  @Input()

  public get cfg(): LaneConfig {
    return this._lane;
  }
  public set cfg(value: LaneConfig) {
    this._lane = value;
  }

  @Input()
  fields: FieldMapConfig[] = [];
}
